local unitName = "engineer"

local unitDef = {
        name                = "Construction Mech",
        description         = "Utilitarian vehicle able to build structures.   Unarmed.",
        acceleration        = 0.06,
        brakerate           = 1.5,
        buildpic            = "bengineermkii.png",
        buildCostEnergy     = 100,
        buildCostMetal      = 100,
        buildDistance       = 100,
        builder             = true,

        buildoptions = {
			[[simplefactory]],},
			
		customParams = {
		is_miner=1,	--used by minig: if the unit can mine is_mineable=1 ressources
		max_cargo=25, },	--used by mining: how much metal the unit can carry at once before having to return to a drop off
	
        buildTime           = 10,
        canAssist           = false,
        canFight            = false,
        canGuard            = true,
        canMove             = true,
        canPatrol           = true,
        canReclaim          = true,
		canStop             = true,
        category            = [[LAND]],
        corpse              = [[DEAD]],
        reclaimable         = false,

        energyMake          = 0,
        explodeAs           = [[SMALL_UNIT]],
        footprintx          = 2,
        footprintZ          = 2,
        idleAutoHeal        = 0,
        leaveTracks         = true,
        mass                = 70,
        maxDamage           = 350,
        maxSlope            = 36,
        maxVelocity         = 2,
        maxWaterDepth       = 22,
        metalMake           = 0,
        minCloakDistance    = 75,
        movementClass       = "Default2x2",
        noChaseCategory     = [[LAND]],
        objectName          = "bengineermkii.s3o",
        onoffable           = false,
        seismicSignature    = 4,
        sightDistance       = 500,

	    sounds = {
		    select = {"golgotha/vehicle_done_44khz",},
		    ok = {"golgotha/vehicle_done_44khz",},},

	    sfxtypes = {        
			explosiongenerators = {"custom:buildersparks",},},
		

        smoothAnim          = true,
        terraformSpeed      = 300,
        reclaimSpeed        = 300,
		repairSpeed         = 0.5,
        trackOffset         = 12,
        trackStrength       = 5,
        trackStretch        = 1,
        trackType           = [[StdTank]],
        trackWidth          = 15,
        turnInPlace         = 1,
        turnRate            = 1000,
        showNanospray       = 0,
        workerTime          = 1,
        script              = "bengineermkii.lua",


        }


return lowerkeys({ [unitName] = unitDef })